<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
	<title>Cadastro de alunos</title>
</h:head> 
<body> 

<h1>Cadastro de Alunos</h1>
<br />
<br />
	<h:form>
		<h:messages />
		<h:panelGrid>
			
			<h:outputLabel value="Nome:" for="nome" />
			<h:inputText id="nome" label="Nome" value="#{usuarioBean.nome}"  requiredMessage="Nome obrigatorio"/>
		
			<h:outputLabel value="e_Mail:" for="e_mail" />
			<h:inputText id="email" label="e-Mail" value="#{usuarioBean.email}" required="true" requiredMessage="email Obrigatorio"/>
			
			<h:outputLabel value="Senha:" for="senha" />
			<h:inputSecret id="senha" label="Senha" value="#{usuarioBean.senha}" required="true" requiredMessage="senha obrigatoria" />
			
			<h:outputLabel value="Confirmar Senha:" for="confirmarsenha" />
			<h:inputSecret id="confirmarSenha" label="Confirmar Senha" value="#{usuarioBean.confirmarSenha}" required="true" requiredMessage="obrigatorio" />
		
			<h:outputText  />
			<h:commandButton action="#{usuarioBean.salvar}" value="salvar" />
		</h:panelGrid>
	</h:form>
	<br />
</body> 
</html>
